package com.learning.cloud.feign;

import com.learning.cloud.entity.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

/**
 * description:
 *
 * @author minghuiZhang
 * @date created in  17:55 2018/5/2
 * modified by
 */
@FeignClient(name = "microservice-provider-user" ,fallback = HystrixClientFallback.class)
public interface UserFeignClient {
	@RequestMapping(value = "/simple/{id}",method = RequestMethod.GET)
	User findById(@PathVariable("id") Long id);





}
